﻿using System.ComponentModel;
using System.Web.UI.WebControls;

namespace Library.WebControls.SimplePaging {
	[DesignTimeVisible(false)]
	internal class TablePaging : Table {
		private RowPaging _rowPaging;
		public TablePaging() {
			Initilize();
		}

		private void Initilize() {
			_rowPaging = new RowPaging();
			//_childs = new ReadOnlyControlCollection(this, new[] { _rowPaging });
			Rows.Add(_rowPaging);
			Width = new Unit("100%");
			CellPadding = 0;
			CellSpacing = 0;
			CssClass = "sppaging";
		}
		//public override ControlCollection Controls {
		//get { return _childs; }
		//}
		//[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
		//[Browsable(false)]
		//public override TableRowCollection Rows {
		//get {
		//return base.Rows;
		//}
		//}

		internal RowPaging RowPaging {
			get { return _rowPaging; }
		}
	}
}
